package com.socool.sinofaith.model;

import java.util.ArrayList;
import java.util.List;

public class SynTaskResponse {
	private int result;
	private String desc;
	private SynTaskBean data;

	public int getResult() {
		return result;
	}

	public String getDesc() {
		return desc;
	}

	public SynTaskBean getData() {
		return data;
	}

	public static class SynTaskBean {
		private int taskid;
		private String taskname;

		private List<SynSubtaskBean> subtasks;

		public int getTaskid() {
			return taskid;
		}

		public String getTaskname() {
			return taskname;
		}

		public List<SynSubtaskBean> getSubtasks() {
			return subtasks;
		}

		public static class SynSubtaskBean implements android.os.Parcelable {
			private int subtaskid;
			private String subtaskname;
			private int subtaskcnt;

			private List<WorksBean> works;

			private List<String> unsubmitvinnos;

			public int getSubtaskid() {
				return subtaskid;
			}

			public String getSubtaskname() {
				return subtaskname;
			}

			public int getSubtaskcnt() {
				return subtaskcnt;
			}

			public List<WorksBean> getWorks() {
				return works;
			}

			public List<String> getUnsubmitvinnos() {
				if(unsubmitvinnos==null){
					unsubmitvinnos=new ArrayList<String>();
				}
				return unsubmitvinnos;
			}

			public static class WorksBean implements android.os.Parcelable {
				private String submiter;
				private String name;
				private int cnt;

				public String getSubmiter() {
					return submiter;
				}

				public String getName() {
					return name;
				}

				public int getCnt() {
					return cnt;
				}

				@Override
				public int describeContents() {
					return 0;
				}

				@Override
				public void writeToParcel(android.os.Parcel dest, int flags) {
					dest.writeString(this.submiter);
					dest.writeString(this.name);
					dest.writeInt(this.cnt);
				}

				public WorksBean() {
				}

				protected WorksBean(android.os.Parcel in) {
					this.submiter = in.readString();
					this.name = in.readString();
					this.cnt = in.readInt();
				}

				public static final android.os.Parcelable.Creator<WorksBean> CREATOR = new android.os.Parcelable.Creator<WorksBean>() {
					@Override
					public WorksBean createFromParcel(android.os.Parcel source) {
						return new WorksBean(source);
					}

					@Override
					public WorksBean[] newArray(int size) {
						return new WorksBean[size];
					}
				};
			}

			@Override
			public int describeContents() {
				return 0;
			}

			@Override
			public void writeToParcel(android.os.Parcel dest, int flags) {
				dest.writeInt(this.subtaskid);
				dest.writeString(this.subtaskname);
				dest.writeInt(this.subtaskcnt);
                dest.writeTypedList(this.works);
                dest.writeStringList(this.unsubmitvinnos);
			}

			public SynSubtaskBean() {
			}

			protected SynSubtaskBean(android.os.Parcel in) {
				this.subtaskid = in.readInt();
				this.subtaskname = in.readString();
				this.subtaskcnt = in.readInt();
                this.works = in.createTypedArrayList(WorksBean.CREATOR);
                this.unsubmitvinnos = in.createStringArrayList();
			}

			public static final android.os.Parcelable.Creator<SynSubtaskBean> CREATOR = new android.os.Parcelable.Creator<SynSubtaskBean>() {
				@Override
				public SynSubtaskBean createFromParcel(android.os.Parcel source) {
					return new SynSubtaskBean(source);
				}

				@Override
				public SynSubtaskBean[] newArray(int size) {
					return new SynSubtaskBean[size];
				}
			};
		}
	}
}
